package com.itheima.ao1threadcase2;
//方式二，实现Runnable接口，重写抽象方法
public class MyRun implements Runnable{


    @Override
    public void run() {
        for (int i = 0; i < 10; i++) {
            System.out.println(Thread.currentThread().getName()+" hello runnable!");
        }
    }
}
